Fluent Assertions Documentation
FluentAssertions.Collections Namespace / GenericCollectionAssertions<TCollection,T,TAssertions> Class / Equal Method / Equal(T[]) Method
A params array with the expected elements.
In This Topic
    Equal(T[]) Method
    In This Topic
    Expects the current collection to contain all the same elements in the same order as the collection identified by elements. Elements are compared using their System.Object.Equals(System.Object) method.
    Syntax
    public AndConstraint<TAssertions> Equal( 
       params T[] elements
    )

    Parameters

    elements
    A params array with the expected elements.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also